package cn.edu.scau.cmi.zhouxinyue.SimpleFactory;

public class MeatFactory {
	public static Meat getMeatObj(String name) {
		Meat meat =null;
		if(name.compareTo("Beef")==0){
			meat=new Beef();
		}
		else if(name.compareTo("Chicken")==0) {
			meat=new Chicken();
		}
		else if(name.compareTo("Pork")==0) {
			meat=new Pork();
		}
		return meat;
	}

}
